﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utils.Common;
using ZK.Entity;
using ZK.Entity.Config;

namespace ZK.BLL.Config
{

    [Serializable]
    public  class PrinterSettingConfig : ConfigBase
    {

        private static PrinterSettingConfig config;
        public static PrinterSettingConfig GetConfig()
        {
            if (config == null)
            {
                config = ConfigHelper.BackSerialize(new PrinterSettingConfig());
                if (config == null)
                {
                    config = new PrinterSettingConfig();
                    config.PrinterSettingList = new List<PrinterSetting>();
                }
 
            }
            return config;
        }


        //修改 
        public bool EditConfig()
        {
            try
            {
                return ConfigHelper.Serialize(config);

            }
            catch
            {
                return false;
            }
        }
   

        public List<PrinterSetting> PrinterSettingList { get; set; }

    }
}
